﻿using System;

namespace DataManage
{
    [Serializable]
    public class DataFrames
    {
        /// <summary>
        /// 时间标识
        /// </summary>
        public ulong DateTimeStamp { get; set; }
        /// <summary>
        /// CAN类型
        /// <para></para>
        /// </summary>
        public ZLGCANProtocolType CANType;
        /// <summary>
        /// ID
        /// </summary>
        public uint CANId { get; set; }
        /// <summary>
        /// 数据段长度
        /// </summary>
        public byte Length {  get; set; }
        /// <summary>
        /// 数据段
        /// </summary>
        public byte[] Data { get; set; }
        /// <summary>
        /// 额外标志，比如使用CANFD加速，则设置为宏CANFD_BRS
        /// </summary>
        public byte Flag { get; set; }
        /// <summary>
        /// 帧格式
        /// <para>0：标准帧</para>
        /// <para>1：扩展帧</para>
        /// </summary>
        public byte FrameFormat {  get; set; }
        /// <summary>
        /// 帧类型
        /// <para>0：数据帧</para>
        /// <para>1：远程帧</para>
        /// </summary>
        public byte FrameType { get; set; }

    }
}
